package com.example.sale.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.sale.True.Product;
import com.example.sale.True.UserDetail;

import java.util.Map;

public interface IProductService extends IService<Product> {
    IPage<Product> searchProduct(Page<Product> page, Map<String, Object> params);
    boolean isProductExists(String name);
    Integer GetFruitNumber(String name);
    Integer GetVegetablesNumber(String name);
    Integer GetMeatNumber(String name);
    Integer GetSeafoodNumber(String name);
    String GetMaxPrice();
    String GetMinPrice();
    double GetAvgPrice();
    double GetTypePrice(String type);
}
